/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package elaborate.h2x.transform.position;

import elaborate.h2x.transform.TransformingModel;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author lendle
 */
public class LayeredTransformingNodesPositionerImpl implements TransformingNodesPositioner{
    protected List<TransformingNodesPositioner> childPositioners=new ArrayList<TransformingNodesPositioner>();

    public void addTransformingNodesPositioner(TransformingNodesPositioner positioner){
        this.childPositioners.add(positioner);
    }

    public void determinePositions(TransformingModel model, PositionMap map) throws Exception {
        for(TransformingNodesPositioner positioner : this.childPositioners){
            positioner.determinePositions(model, map);
        }
    }

}
